package com.ljm.boot.helloword.simpleStudy.springBoot.service;


import com.ljm.boot.helloword.simpleStudy.springBoot.annotation.Autowired;
import com.ljm.boot.helloword.simpleStudy.springBoot.annotation.Component;
import com.ljm.boot.helloword.simpleStudy.springBoot.annotation.Scope;
import com.ljm.boot.helloword.simpleStudy.springBoot.bean.User;
import com.ljm.boot.helloword.simpleStudy.springBoot.interfaces.InitializitingBean;

@Component("userService")
@Scope("prototype")
public class UserService implements InitializitingBean {

    @Autowired
    private OrderService orderService;

    private User defaultUser;

    public void test(){
        System.out.println(orderService);
    }

    public void afterPropertiesSet() {
        defaultUser = new User();
    }
}
